using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using SharpMud.MudLib.Common.Environment.Persistance;

namespace SharpMud.MudLib.Common.Environment
{
    [XmlRoot("EnvironmentConfiguration")]
    public class EnvironmentConfiguration<TAreaInstance> where TAreaInstance : IArea, new()
    {
        private List<AreaLoaderMetadatum<TAreaInstance>> _AreaLoaders;

        public EnvironmentConfiguration()
        {
            _AreaLoaders = new List<AreaLoaderMetadatum<TAreaInstance>>();
        }

        public AreaLoaderMetadatum<TAreaInstance>[] AreaLoaders
        {
            get
            {
                return _AreaLoaders.ToArray();
            }
            set
            {
                _AreaLoaders.AddRange(value);
            }
        }
    }
}
